GailTreeView: optimize a bit
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jun 2011 02:27:10 +0000 (22:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2011 20:08:05 +0000 (16:08 -0400)
commit2deeab4c4f929ebd32d5f6141ea1cec572a76728
tree24078dae711a3ce2f0107bee1ce1cf33fd376722
parent23bc606c793a967e5c0efa5337474c6f36b7f3fc
GailTreeView: optimize a bit

Avoid many unnecessary list iterations by using a hash table
to store cell infos, and caching row and column counts. Based
on patches by William Jon McCann, bug 554171.

tree-performance results:

before:  (MINPERF:large tree test with a11y: 9.18531sec)
after:   (MINPERF:large tree test with a11y: 0.923463sec)

for comparison, without accessibility:
(MINPERF:large tree test: 0.016179sec)
gtk/a11y/gailtreeview.c